package org.springblade.app.wrapper;

import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.app.entity.AppInfoEntity;
import org.springblade.app.vo.AppInfoVO;

/**
 * 应用表 包装类,返回视图层所需的字段
 *
 * @author Chill
 */
public class AppInfoWrapper extends BaseEntityWrapper<AppInfoEntity, AppInfoVO>  {

	public static AppInfoWrapper build() {
		return new AppInfoWrapper();
 	}

	@Override
	public AppInfoVO entityVO(AppInfoEntity app_info) {
		AppInfoVO app_infoVO = BeanUtil.copy(app_info, AppInfoVO.class);

		//User createUser = UserCache.getUser(app_info.getCreateUser());
		//User updateUser = UserCache.getUser(app_info.getUpdateUser());
		//app_infoVO.setCreateUserName(createUser.getName());
		//app_infoVO.setUpdateUserName(updateUser.getName());

		return app_infoVO;
	}

}
